home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / AECUR102.ZIP / contrib / curses / src / waddstr.c < prev    next >
C/C++ Source or Header  |  1990-03-09  |  462b  |  22 lines

  1. /*------------------------------------------------------------
  2.  * 
  3.  *  waddstr.c
  4.  * 
  5.  *  copyright (c) 1987,88,89,90 J. Alan Eldridge
  6.  *
  7.  *  adds a string to a window at the current cursor position
  8.  * 
  9.  *----------------------------------------------------------*/
  10.  
  11. #include "curses.h"
  12.  
  13. waddstr(win, str)
  14. WINDOW  *win;
  15. char    *str;
  16. {
  17.     while (*str)
  18.         if (waddch(win, *str++) == ERR)
  19.             break;
  20.     return *str ? ERR : OK;
  21. }
  22.